<h2>Users List</h2>

<table>
    <tr>
        <th>Name</th>
        <th>Company</th>
        <th>Email</th>
        <th>Phone</th>
        <th class="action">Action</th>
    </tr>
    <?php foreach($user as $row): ?>
    <tr>
        <td><?php echo $row['User']['name'] ?></td>
        <td><?php echo $row['User']['company'] ?></td>
        <td><?php echo $row['User']['email']; ?></td>
        <td><?php echo $row['User']['phone']; ?></td>
        <td>
            <?php echo $html->link("edit",array('action'=>'edit',$row['User']['id']))?>,
            <?php echo $html->link("view",array('action'=>'view',$row['User']['id']))?>,
            <?php echo $html->link("delete",array('action'=>'delete',$row['User']['id']),null,"Delete?")?>
        </td>
    </tr>
    <?php endforeach;?>
</table>
<div class="paging">
    <?php echo $paginator->prev('<< Prev',array(),null,array('class'=>'disabled') )?>
    | <?php echo $paginator->numbers() ?>
    <?php echo $paginator->next('Next >>',array(),null,array('class'=>'disabled') )?>
</div>